﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Site.Master" AutoEventWireup="true" CodeBehind="EmployeeList.aspx.cs" Inherits="VK.Casemeet.Web.Admin.Employees.EmployeeList" %>
<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>
<%@ Import Namespace="VK.Comm" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentBody" runat="server">
    <div class="bodyContent divBody">
        <div class="divListOper">
            <a class="tableOperNew" href="EmployeeAdd.aspx">新建管理员</a>
        </div>
        <div class="divSearch">
            <div class="ico"></div>
            <div class="content">
                <div class="padlef10" style="width:auto;">
                    帐号: <asp:TextBox ID="txtAccount" runat="server" Width="200" CssClass="inputText"></asp:TextBox>
                </div>
                <div class="padlef10" style="width:auto;">
                    角色: <asp:DropDownList ID="ddlRoleID" runat="server" CssClass="selectddl"></asp:DropDownList>
                </div>
            </div>
            <div class="search" style="width:80px;">
                <asp:Button ID="butSearch" runat="server" CssClass="inputbutSearch" Text="搜 索 >>" onclick="butSearch_Click" />
            </div>
        </div>
        <asp:Repeater ID="rptEmployee" runat="server" onitemcommand="rptEmployee_ItemCommand">
        <HeaderTemplate>
        <table class="tableList" cellspacing="0">
            <thead>
                <tr>
                    <th style="width:50px;"><span>编号</span></th>
                    <th><span>帐号</span></th>
                    <th><span>角色</span></th>
                    <th style="width:130px;"><span>操作</span></th>
                </tr>
            </thead>
            <tbody>
        </HeaderTemplate>
        <ItemTemplate>
                <tr>
                    <td><%# Eval("EmployeeID")%></td>
                    <td><%# Eval("Account")%></td>
                    <td><%# Eval("RoleName")%></td>
                    <td>
                        <asp:LinkButton ID="butReset" CommandName="Reset" CommandArgument='<%# Eval("EmployeeID")%>' runat="server" ToolTip="密码重置" CssClass="left tableOperEdit" OnClientClick="return confirm('您确定要重置吗？重置后将不可恢复！');">密码重置</asp:LinkButton>
                        <a class="left tableOperEdit" title="编辑" href="EmployeeEdit.aspx?EmployeeID=<%# Eval("EmployeeID")%>">&nbsp;</a>
                        <asp:LinkButton ID="butDelete" CommandName="Delete" CommandArgument='<%# Eval("EmployeeID")%>' runat="server" ToolTip="删除" CssClass="left tableOperDelete" OnClientClick="return confirm('您确定要删除吗？删除后将不可恢复！');">&nbsp;</asp:LinkButton>
                    </td>
                </tr>
        </ItemTemplate>
        <FooterTemplate>
            </tbody>
        </table>
        </FooterTemplate>
        </asp:Repeater>
        <webdiyer:AspNetPager ID="aspNetPager" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb" 
            onpagechanged="aspNetPager_PageChanged" PageIndexBoxType="DropDownList" 
            PageSize="10" SubmitButtonText="Go" TextAfterPageIndexBox="页" 
            TextBeforePageIndexBox="转到" 
            CustomInfoHTML="&nbsp;&nbsp;共%RecordCount%条, 每页%PageSize%条, <font style='color:#A36D33;'>%currentPageIndex%</font>/%pageCount%页" 
            ShowCustomInfoSection="Left">
        </webdiyer:AspNetPager>
    </div>
</asp:Content>
